<style>
.weui_cell_bd {
    padding: 0;
	min-height:1.6rem;
	line-height:1.6rem;
}
.weui_cell_hd {min-width:3.7rem;padding: 0 4px;}
.weui_input {padding:0}
</style>
<div class='fui-page fui-page-current page-commission-register'>
	<img style="width:100%;position: relative" ng-src="{{tomedia(pagedata.applyset.regbg) || '../addons/jy_weishop/resource/images/myshoptop.jpg'}}" />
	<div ng-if="pagedata.member.stop==1" class='fui-content'>
        <div  class='content-empty' >
            <i class='icon icon-info text-danger'></i>
            <br/><span class="text-danger">禁止申请，请联系客服！</span>
        </div>
	</div>
	<div ng-if="pagedata.member.stop !=1">
	<div class='fui-content' ng-if="!pagedata.apply && !pagedata.can_apply">
			<div  class='fui-list-group'>
				<div class='fui-list-group-title'><i class="icon icon-lights"></i> 友情提醒</div>
				<div class='fui-list'>
					<div class='fui-list-inner'>
						<div class='text'>本店累计消费满 <span class="text-danger text-bold">{{pagedata.limit}}</span>{{pagedata.unit}}，
							才可成为&lt;<span class="text-danger text-bold">{{pagedata.pluginset.title || '本商城'}}</span>&gt;购物中心{{pagedata.pluginset.tagent}}，您已消费 <span class="text-danger text-bold">{{pagedata.now}}</span> {{pagedata.unit}}，请继续努力！</div>
					</div>
				</div>
			</div>
	</div>
	<div ng-if="pagedata.apply && pagedata.applyagain!=1" class='fui-content'>
		<div ng-if="pagedata.applystatus==0" class='content-info' >
            <i class='icon icon-clock'></i>
            <br/><span class="">谢谢您的支持，请等待审核！</span>
        </div>
		<div ng-if="pagedata.applystatus==1 && pagedata.member.status!=1" class='content-info' >
            <i class='icon icon-clock'></i>
            <br/><span class="">您的配送员身份属于未审核状态！</span>
			<br/>
			<a class="btn btn-warning" href="javascript:;" ng-click="pagedata.applyagain=1">重新申请</a>
		</div>
		<div ng-if="pagedata.member.status==1" class='content-info' >
            <i class='icon icon-clock'></i>
            <br/><span class="">恭喜您，您的配送员申请已审核通过！</span>
            <br/><a class="btn btn-danger" href="javascript:;" ng-click="access_json('jy_peiorder/index/')">前往配送员中心</a>
        </div>
		<div ng-if="pagedata.member.status==2 || pagedata.applystatus==2" class='content-info' >
            <i class='icon icon-clock'></i>
            <br/><span class="">非常抱歉，您的配送员申请被管理员拒绝！</span>
			<br/><span class="">未审核通过原因：</span>
			<br/><span class="subtitle">{{pagedata.apply.remark || '无'}}</span>
            <br/><a class="btn btn-danger" href="javascript:;" ng-click="pagedata.applyagain=1">重新申请</a>
        </div>
	</div>
    <div ng-if="(!pagedata.apply && pagedata.can_apply) || pagedata.applyagain" class='fui-content'>
		<div style="padding:0.5rem">
        <div class="fui-cell-group" style='margin-top:0'>
            <div class="fui-cell-title">
                欢迎加入<span class='text-danger'>{{pagedata.pluginset.title}}</span>，请填写申请信息
            </div>
            <div class='fui-cell'>
                <div class='fui-cell-label must'>姓名</div>
                <div class='fui-cell-info'><input type="text" class='fui-input' ng-model="pagedata.post.realname" placeholder="请填写真实姓名，用于结算" /></div>
            </div>
			<div class="fui-cell">
					<div class="fui-cell-label">手机号</div>
					<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="请输入您的手机号"  ng-model="pagedata.post.mobile" /></div>
					<div ng-if="pagedata.applyset.is_smscode==1" class="fui-cell-remark noremark"><a class="btn btn-default btn-default-o btn-sm" ng-click="tool.mobile_code(pagedata.post.mobile,'smscode')" id="smscode">获取验证码</a></div>
			</div>
			<div ng-if="pagedata.applyset.is_smscode==1" class="fui-cell">
					<div class="fui-cell-label ">验证码</div>
					<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="请输入验证码" ng-model="pagedata.post.smscode" /></div>
			</div>
            <div class='fui-cell'>
                <div class='fui-cell-label'>微信号</div>
                <div class='fui-cell-info'><input type="text" class='fui-input' ng-model="pagedata.post.wechat" placeholder="请填写微信号"  /></div>
            </div>
			<div class='fui-cell'>
                <div class='fui-cell-label'>申请配送点</div>
                <div class="fui-cell-info">
					<select class="weui_select" ng-model="pagedata.post.area_id" name="type" style="background:#f2f2f2">
						<option ng-repeat="item in pagedata.groups" value="{{item.id}}">{{item.title}}</option>
					</select>
				</div>
            </div>
		</div>
		<div ng-if="pagedata.post.diyfields.length>0" class="weui_cells_title">其他内容</div>
		<div ng-include="sys_html('common/_diyform',true)"></div>
        <div class="fui-cell-group">
                <div class="fui-cell small ">
                    <div class="fui-cell-info">
                        <label class="checkbox-inline">
                            <input type="checkbox" class="fui fui-checkbox fui-checkbox-danger" ng-model="pagedata.post.agree" /> 我已经阅读并了解了<a id="btn-apply" ng-click="pagedata.show_content=true" style="color:#337ab7;">【{{pagedata.peixieyi.title}}】</a>。
                        </label>

                    </div>
                </div>
         </div>
         <div ng-show="pagedata.show_content" class="modal-bg pop-apply-hidden" >
                <div class="modal-content" style="top:10%;width:90%;left:5%">
                    <div class="closebtn" ng-click="pagedata.show_content=false" style="opacity:1;"><i class="icon icon-cuowu"></i></div>
                    <div class="news-body">
						<div class="title">{{pagedata.peixieyi.title}} / <small>Read &nbsp;Ggree</small></div>
                        <div class="text" ng-bind-html="trust(pagedata.peixieyi.content)"></div>
                    </div>
					<div class="modal-footer">
                            <div ng-click="pagedata.show_content=false" class="mod-check" style="width: 100%; margin: 0;">我已阅读</div>
                    </div>
                </div>
         </div>
        <div class='btn btn-danger block btn-submit' style="margin-top:2rem" ng-click="post(pagedata.post,'jy_peiorder/apply/apply/')">申请成为配送员</div>
		 </div>
		</div>
	</div>
	</div>
</div>

